737313a3428833a97c415c6c33d5117d0f73420f,oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/PermissionProviderImpl.java,PermissionProviderImpl,getVersionablePath,#Tree#PropertyState#,188

Before Change


                if (prop != null) {
                    versionablePath = prop.getValue(Type.PATH);
                    if (t != versionStoreTree) {
                        String rel = PathUtils.relativize(t.getPath(), versionStoreTree.getPath());
                        String propName = (property == null) ? "" : property.getName();
                        versionablePath = PathUtils.concat(versionablePath, rel, propName);
                    }

After Change


        String propName = (property == null) ? "" : property.getName();
        String versionablePath = null;
        Tree t = versionStoreTree;
        while (t != null && !JcrConstants.JCR_VERSIONSTORAGE.equals(t.getName())) {
            String name = t.getName();
            String ntName = TreeUtil.getPrimaryTypeName(t);
            if (VersionConstants.JCR_FROZENNODE.equals(name) && t != versionStoreTree) {
                relPath = PathUtils.relativize(t.getPath(), versionStoreTree.getPath());
            } else if (JcrConstants.NT_VERSIONHISTORY.equals(ntName)) {
                PropertyState prop = t.getProperty(workspaceName);
                if (prop != null) {